package org.cuatrovientos.erp.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class Department {

private int id;

@NotNull(message="{department.name.error}")
private String name;

@NotNull(message="{department.description.error}")
private String description;

@Size(min=1,message="{department.idemployee.error}")
private int idemployee;

public Department() {

}


public Department(int id, String name, String description, int idemployee) {
	super();
	this.id = id;
	this.name = name;
	this.description = description;
	this.idemployee = idemployee;
}


/**
 * @return the id
 */
public int getId() {
	return id;
}



/**
 * @param id the id to set
 */
public void setId(int id) {
	this.id = id;
}



/**
 * @return the name
 */
public String getName() {
	return name;
}



/**
 * @param name the name to set
 */
public void setName(String name) {
	this.name = name;
}



/**
 * @return the description
 */
public String getDescription() {
	return description;
}



/**
 * @param description the description to set
 */
public void setDescription(String description) {
	this.description = description;
}



/**
 * @return the idemployee
 */
public int getIdemployee() {
	return idemployee;
}



/**
 * @param idemployee the idemployee to set
 */
public void setIdemployee(int idemployee) {
	this.idemployee = idemployee;
}




}
